//
//  BJGHomeViewCon.swift
//  Demo_Pj1
//
//  Created by zcsmart on 2018/11/2.
//  Copyright © 2018 zcsmart. All rights reserved.
//

import UIKit

class BJGHomeViewCon: UIViewController {

    var shadowImage : UIImageView?
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        self.navigationController?.navigationBar.shadowImage = UIImage()
        self.navigationController?.navigationBar.barTintColor = UIColor.HEX_COLOR(HEX_Value: 0x5298ff, alpha: 1)
        self.navigationController?.navigationBar.isTranslucent = false
        self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
        
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
         self.navigationController?.navigationBar.barTintColor = UIColor.white
     self.navigationController?.navigationBar.shadowImage = nil  //恢复Nav黑线
            self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.black]
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        

        
        addNavBarItem()
        
    }
    
    func addNavBarItem(){
     
        
        
    }



}
